package lab02.test06;

/**
 * Created by JAVA on 2017/10/15.
 */
public class Circle {
//	Circle类具有类型为double的半径、周长和面积属性，具有返回周长、面积的功能。
    double PI=3.14;
    private double radius,girth,area;
    public Circle(){}
    public Circle(double radius,double girth,double area){
        this.area=area;
        this.girth=girth;
        this.radius=radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getGirth(double radius) {
        girth=2*radius*PI;
        return girth;
    }

    public void setGirth(double girth) {
        this.girth = girth;
    }

    public double getArea(double radius) {
        area=PI*radius*radius;
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }
}
